
import {AsyncStorage} from 'react-native'

export function setItem(key,value) {
        return AsyncStorage.setItem(key,value,)
}



export function getItem(key){
    return   AsyncStorage.getItem(key).then(function (result) {
        return result;
    }).catch(function (error) {
        return null
    });
}


//删除
export function removeItem(key){
        return AsyncStorage.removeItem(key)
}